package org.karelun.gef.model;

import org.eclipse.draw2d.geometry.Dimension;

/*
 * @author Karelun huang
 */
public class MethodModel extends BaseClassModel{

    private static final long serialVersionUID = 3256728381147132977L;

    private static int i=0;
    
    private String method="method"; //$NON-NLS-1$
    
    public MethodModel() {
        super();
        if(i>0)
        	method="method"+String.valueOf(i); //$NON-NLS-1$
        setText(method);
        i++;
        setLocation(5,5);
        setSize(new Dimension(10,20));
        
        String id=String.valueOf(System.currentTimeMillis());
        setId(id);
        
    }
}